package com.hwl.basic;

/**
 * @author 何文亮
 * @date 2021-01-09
 */
public class SanYuanTest {
    public static void main(String[] args) {
        int x = 34, y = 65;
//        x = 65;
        String MaxStr = (x > y) ? "x大" : ((x==y)?"x和y相等":"y大");
//        System.out.println((x > y) ? x : y);
        System.out.println(MaxStr);
        int n1 = 10,n2 = 15,n3 = 5;
        int max = ((n1 > n2)? n1:n2) > n3 ? ((n1 > n2)? n1:n2) :n3;
        System.out.println(max);
    }
}
